package IO;

import java.io.File;
import java.util.Scanner;

public class Demo3 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        //文件删除
        File f = new File("./test.txt");
        //f.delete();
        f.deleteOnExit();
        //将程序阻塞住
        scanner.next();
        System.out.println(f.exists());
    }
}
